import http from '@/common/utils/request.js'

export const privilege = {
	//获取列表
	getPrivilegeList(data){
		return http.get('/system/privilegeForC/', {params:data, custom:{}})
	},
	//获取详情
	getItemById(data){
		return http.post('/system/privilegeForC/getItemById/', data, {custom:{}})
	},
	//创建
	createPrivilege(data){
		return http.post('/system/privilegeForC/createAction/', data, {custom:{}})
	},
	//领券
	getCoupon(data){
		return http.post('/system/privilege/getCoupon/', data, {custom:{}})
	},
}